/* egg_folder/app/contract/format.js */
'use strict';

module.exports = {
  articleList: { // 这个名字对应上面 Controller 注释的@response 的 JsonBody。
    title: { type: 'string', required: true, description: '文章标题', example: '你会用Vue写小程序吗' },
  },
  userinfo: {
    username: { type: 'string', required: true, description: '登录账号', example: 'admin' },
    password: { type: 'string', required: true, description: '登录密码', example: '123456' },
    confirm: { type: 'string', required: true, description: '登录密码', example: '123456' },
    type: { type: 'int', required: true, description: '用户种类', example: '1' },
  },
  useritem: {
    id: { type: 'int', required: true, description: '用户id', example: '1' },
    name: { type: 'string', required: true, description: '用户名', example: 'admin' },
    createTime: { type: 'string', required: true, description: '用户名', example: '2020-09-05 13:51:21' },
    type: { type: 'int', required: true, description: '0 超级管理， 1 普通管理' },
  },
  login: {
    username: { type: 'string', required: true, description: '登录账号', example: 'admin' },
    password: { type: 'string', required: true, description: '登录密码', example: '123456' },
  },
  type: {
    id: { type: 'int', required: true, description: 'ID' },
    typeName: { type: 'string', required: true, description: '分类名' },
    orderNum: { type: 'int', required: true, description: '排序等级' },
  },
};
